package com.imodia.checkoo.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.hsq.commons.util.db.GenericIbatisDao;
import com.hsq.commons.util.db.SqlParam;
import com.hsq.commons.util.db.annotation.SqlSpace;
import com.imodia.checkoo.bean.CmsPageAdCatalogueBean;
import com.imodia.checkoo.service.CmsPageAdCatalogueService;


@SqlSpace(spaceName="cmspageadcatalogue")
@Service
public class CmsPageAdCatalogueServiceImpl 	extends
	GenericIbatisDao<CmsPageAdCatalogueBean, Integer> implements CmsPageAdCatalogueService {
	

	
	public void saveBatch(List<CmsPageAdCatalogueBean> list,int adId){
		SqlParam sql = new SqlParam();
		sql.andEqualTo("ad_id", String.valueOf(adId));
		delete(sql);
		batchInsert(list);
	}
	
	
}